# Contributor: Jason Swank <jswank@scalene.net>
# Maintainer: Jason Swank <jswank@scalene.net>
pkgname=openvi
pkgver=7.5.28
pkgrel=0
pkgdesc="OpenVi is a fork of the vi / ex editor included with OpenBSD"
url="https://github.com/johnsonjh/OpenVi"
arch="all"
license="BSD-3-Clause"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/johnsonjh/OpenVi/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/OpenVi-$pkgver"
options="!check" # no tests

build() {
	make
}

package() {
	make BINPREFIX="o" DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="
15ea561c81987c3c32f9afa5af04735b479ec3a9771c7323d1fb1ab12dcaf0ffff0767ad9f8a1fff7154e81f07588012e7d24f67641d3dbb360e1c419789d186  openvi-7.5.28.tar.gz
"
